package com.atguigu.gmall.item.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.client.fallback.ItemFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 商品详情微服务远程调用feign管理接口
 */
@FeignClient(name = "service-item",path = "/item",fallback = ItemFeignClientFallback.class)
public interface ItemFeignClient {
    @GetMapping(value = "/getSkuDetail/{item}")
    public Result getSkuDetail(@PathVariable(value = "item") Long skuId);
}
